<template>
  <h2 class="test-title text-center">2022年职工安全培训考核（取活动名称）</h2>
  <div class="rowBS">
    <div class="info-left">
      <h3 class="text-center mb-2">答题卡</h3>
      <div class="topic-type-index-box">
        <p class="mb-1"> 单选题 </p>
        <p class="font-sizePx12 mb-1">（共10题，合计20分）</p>
        <ul class="topic-number-box rowSS">
          <li class="topic-index" :class="{danger:i===2}" v-for="i in 10">{{ i }}</li>
        </ul>
      </div>
      <div class="topic-type-index-box">
        <p class="mb-1"> 多选题 </p>
        <p class="font-sizePx12 mb-1">（共10题，合计20分）</p>
        <ul class="topic-number-box rowSS">
          <li class="topic-index" :class="{danger:i===2}" v-for="i in 10">{{ i }}</li>
        </ul>
      </div>
      <div class="topic-type-index-box">
        <p class="mb-1"> 判断题 </p>
        <p class="font-sizePx12 mb-1">（共10题，合计20分）</p>
        <ul class="topic-number-box rowSS">
          <li class="topic-index" :class="{danger:i===2}" v-for="i in 10">{{ i }}</li>
        </ul>
      </div>

    </div>
    <div class="flex-1 topic-box flex-wrap">
      <TopicItem v-for="i in 15"></TopicItem>
    </div>
    <div class="info-right">
      <h3 class="text-center">答题时间</h3>
      <p class="text-center pt-2 pb-2">00:55:49</p>
      <div class="handle-box rowSC">
        <el-button style="width:100%" type="primary">提交</el-button>
        <el-button style="width:100%" type="warning">暂存</el-button>
      </div>

    </div>
  </div>

</template>

<script>
export default {
  name: "answer_page"
}
</script>
<script setup>
import TopicItem from '../compents/topic_item'

</script>

<style lang="scss" scoped>
$titleHeight: 80px;
.info-left, .info-right {
  width: 180px;
}

.test-title {
  height: $titleHeight;
  //max-width: 80%;
  padding: 20px 180px;
}

.topic-box {
  margin: 0 10px;
  padding: 20px 10px;
  min-height: calc(100vh - #{$navBarHeight} - #{$titleHeight} - 30px);
  max-height: calc(100vh - #{$navBarHeight} - #{$titleHeight} - 30px);
  overflow: auto;
  //border: 1px solid var(--borderColor);
  border: 1px solid var(--borderColor);

}
.topic-type-index-box{
  border-bottom: 1px solid #d2cfcf;
  margin-bottom: 20px;
  &:last-child{
    margin-bottom: 0;
    border-bottom: none;
  }
}
.topic-number-box {
  flex-wrap: wrap;

  .topic-index {
    cursor: pointer;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    background: #007BFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    margin-right: 10px;
    margin-bottom: 10px;

    &:hover {
      background: rgba(0, 123, 255, 0.87);
    }

    &.danger {
      background: #f56c6c;

      &:hover {
        background: rgba(245, 108, 108, 0.87);
      }
    }
  }
}

</style>
